﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Core.Models
{
    /// <summary>
    /// 模块（菜单）
    /// </summary>
    public class SysModule:BaseModel
    {
        [StringLength(20)]
        public string Name { get; set; }

        public int ParentId { get; set; }

        [StringLength(50)]
        public string Url { get; set; }

        /// <summary>
        /// 前端路径
        /// </summary>
        public string ClientPath { get; set; }

        [StringLength(20)]
        public string Iconic { get; set; }

        public int Sort { get; set; }

        public bool IsLeaf { get; set; }
    }
}
